import { FETCH_PUBLICSQUARE } from '@/actionTypes/index.js'
const defaultVal = {
  aaa: 123,
  publicSquare: [],
  mySquare: []
}
const square = (state = defaultVal, action) => {
  console.log('======这是square');
  switch (action.type) {
    case FETCH_PUBLICSQUARE:
      var obj = { ...state.publicSquare, ...action.payload }
      return obj
    default:
      return state
  }
}
export default square